package com.lzclass.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
public class Student implements People {

    @Value("张三")
    private String name;


    public void say() {
        System.out.println("我是学生");
    }
}
